package com.xuecheng.base.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("分页统一返回类")
public class PageResult<T> {
    @ApiModelProperty("查询的数据")
    private List<T> items;

    @ApiModelProperty("当前页码")
    private Long page;

    @ApiModelProperty("每页记录数")
    private Long pageSize;

    @ApiModelProperty("查询的总记录数")
    private Long count;
}
